home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / utils / pvquan16 / pacman.var < prev    next >
Text File  |  1992-12-01  |  2KB  |  66 lines

  1. num_scenes = 142
  2. scene_num = scene_num + 1, 0
  3. rot_time    = 5
  4. cycle_dist    = 20
  5.  
  6. rot_step_size    = 90 / rot_time
  7. food_x        = 90
  8. food1_z        = 100
  9. food2_z        = food1_z - cycle_dist
  10. food3_z        = food2_z - cycle_dist
  11. food4_z        = food3_z - cycle_dist
  12. food5_z        = food4_z - cycle_dist
  13. food6_z        = food5_z - cycle_dist
  14. food7_z     = food6_z - cycle_dist
  15. food8_z        = food7_z - cycle_dist
  16.  
  17. rot1_start      = 34
  18. rot1_end    = rot1_start + rot_time
  19. rot2_start      = rot1_end + 54
  20. rot2_end        = rot2_start + rot_time
  21. rot3_start      = rot2_end + 22
  22. rot3_end        = rot3_start + rot_time                
  23.  
  24. act0        = scene_num < rot1_start
  25. trans01        = (scene_num >= rot1_start) * (scene_num < rot1_end)
  26. act1        = (scene_num >= rot1_end)   * (scene_num < rot2_start)
  27. trans12        = (scene_num >= rot2_start) * (scene_num < rot2_end)
  28. act2        = (scene_num >= rot2_end)   * (scene_num < rot3_start)
  29. trans23        = (scene_num >= rot3_start) * (scene_num < rot3_end)
  30. act3        =  scene_num >= rot3_end
  31.  
  32. pac_z           = pac_z + (0 * act0) + (-3 * act1) + (0 * act2) + (-3 * act3), +140
  33. pac_x        = pac_x + (5 * act0) + ( 0 * act1) + (5 * act2) + ( 0 * act3), -80
  34.  
  35. dir0            = act0 * -90
  36. dir1            = act1 *   0
  37. dir2            = act2 * -90
  38. dir3            = act3 *   0
  39.  
  40. dir01        = trans01 * ((scene_num - rot1_start) *  rot_step_size - 90)
  41. dir12           = trans12 * ((scene_num - rot2_start) * -rot_step_size + 0)
  42. dir23         = trans23 * ((scene_num - rot3_start) *  rot_step_size - 90)
  43.  
  44. pac_dir        = dir0 + dir01 + dir1 + dir12 + dir2 + dir23 + dir3
  45.  
  46. cycle_pos    = ((pac_z + pac_x + 1000) % cycle_dist) * act1
  47.  
  48. lip_lower       = cycle_pos * -2.5
  49. lip_upper       = cycle_pos *  0.6
  50.  
  51. f1_exists       = pac_z > food1_z - 18
  52. f2_exists    = pac_z > food2_z - 18
  53. f3_exists    = pac_z > food3_z - 18
  54. f4_exists    = pac_z > food4_z - 18
  55. f5_exists    = pac_z > food5_z - 18
  56. f6_exists    = (pac_z > food6_z - 18) * (act0 + trans01 + act1)
  57. f7_exists    = (pac_z > food7_z - 18) * (act0 + trans01 + act1)
  58. f8_exists    = (pac_z > food8_z - 18) * (act0 + trans01 + act1)
  59.  
  60. l_eyebrow_angle = cycle_pos *  1.5 + 10.0
  61. r_eyebrow_angle = cycle_pos * -1.5 - 10.0
  62.  
  63. l_eye_dir       = cycle_pos *  2.5 + 10.0
  64. r_eye_dir       = cycle_pos * -2.5 - 10.0
  65.  
  66.